﻿#ifndef POSTCOMMAND_CMDSURFACEELECTRICFIELDMAPSIDEBARCURVENAMECLICKED_H
#define POSTCOMMAND_CMDSURFACEELECTRICFIELDMAPSIDEBARCURVENAMECLICKED_H

#include <QList>
#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdSurfaceElectricFieldMapSidebarCurveNameClicked : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdSurfaceElectricFieldMapSidebarCurveNameClicked();
        ~CmdSurfaceElectricFieldMapSidebarCurveNameClicked();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setSurfaceElectricFieldMapSidebarCurveNameClicked(int windowId, QList<int> selectedIndexes);

    private:
        int m_windowId;
        QList<int> m_selectedIndexes;
    };
} // namespace PostCommand

#endif
